<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>日志</title>
<%@ include file="/pages/common/base/Head.jsp"%>
<script type="text/javascript" src="/${res.contextPath}/js/user/updateUser.js?version=${res.version}"></script>
<script>
	$(function(){
		AddUser.initPage("${res.contextPath}");	
	});
  </script>
</head>
<body>
	<form class="layui-form">
		<div class="layui-form-item">
			<fieldset class="layui-elem-field layui-field-title"
				style="margin-top: 20px;">
				<legend>用户信息</legend>
			</fieldset>
			<div class="layui-form-item">
				<div class="layui-inline">
					<label class="layui-form-label">用户名<span style="color:red">*</span></label>
					<div class="layui-input-inline">
						<input type="text" name="userName" lay-verify="required" value="${user.userName}"
							autocomplete="off" placeholder="用户名" class="layui-input">
					</div>
				</div>
			</div>
			<div class="layui-form-item">
				<div class="layui-inline">
					<label class="layui-form-label">真实姓名</label>
					<div class="layui-input-inline">
						<input type="text" name="realName" lay-verify="required" value="${user.realName}"
							autocomplete="off" class="layui-input">
					</div>
				</div>
				<div class="layui-inline">
					<label class="layui-form-label">身份证号</label>
					<div class="layui-input-inline">
						<input type="text" name="idNo"
							autocomplete="off" class="layui-input" value="${user.idNo}">
					</div>
				</div>
			</div>
			<div class="layui-form-item">
				<label class="layui-form-label">邮箱</label>
				<div class="layui-input-inline">
					<input type="text" name="email"
						autocomplete="off" class="layui-input" value="${user.eMail}">
				</div>
			</div>
			<div class="layui-form-item">
				<label class="layui-form-label">手机号</label>
				<div class="layui-input-inline">
					<input type="text" name="mobile"
						autocomplete="off" class="layui-input" value="${user.mobile}">
				</div>
			</div>
			<div class="layui-form-item">
				<label class="layui-form-label">详情设置</label>
				<div class="layui-input-block">
					<input type="checkbox" name="close" lay-skin="switch"
						lay-filter="switchTest" lay-text="ON|OFF">
				</div>
			</div>
			<div style="display: none" id="extra">
				<div class="layui-form-item">
					<label class="layui-form-label">性别</label>
					<div class="layui-input-block">
					<c:if test="${detail.sex=='0' }">
					<input type="radio" name="sex" value="1" title="男" > 
						<input type="radio" name="sex" value="0" title="女" checked>
					</c:if>
					<c:if test="${detail.sex=='1' }">
						<input type="radio" name="sex" value="1" title="男" checked> 
						<input type="radio" name="sex" value="0" title="女">
					</c:if>
					<c:if test="${detail==null }">
						<input type="radio" name="sex" value="1" title="男" > 
						<input type="radio" name="sex" value="0" title="女">
					</c:if>
					</div>
				</div>
				<div class="layui-form-item">
					<label class="layui-form-label">学校</label>
					<div class="layui-input-inline">
						<input type="text" name="school"
							autocomplete="off" class="layui-input" value="${detail.school}">
					</div>
				</div>
				<div class="layui-form-item">
					<div class="layui-inline">
					<label class="layui-form-label">省份</label>
					<div class="layui-input-inline">
						<select id="province" name="province"  lay-search="" >
							<z:options method="systemServiceBiz.selectProvince()" defaultValue="${detail.pid}"  isfull="true" fullName="请选择省份" text="provincial" value ="pid"></z:options>
						</select>
					</div>
					</div>
					<div class="layui-inline">
						<label class="layui-form-label">地市</label>
						<div class="layui-input-inline">
							<select id="city" name="city"  lay-search="">
								<z:options method="systemServiceBiz.selectCity(${detail.pid})" defaultValue="${detail.cid}" isfull="true" fullName="请选择地市" text="city" value ="cid"></z:options>
							</select>
						</div>
					</div>
				</div>
				<div class="layui-form-item">
					<label class="layui-form-label">单身状况</label>
					<div class="layui-input-inline">
						<select id="singleType" name="singleType">
							<z:options typeId="singleType" isfull="false" defaultValue="${detail.single}"></z:options>
						</select>
					</div>
				</div>
				<div class="layui-form-item">
					<label class="layui-form-label">工作</label>
					<div class="layui-input-inline">
						<input type="text" name="work"  value="${detail.work}"
							autocomplete="off" class="layui-input">
					</div>
				</div>
				<div class="layui-form-item">
					<label class="layui-form-label">地址</label>
					<div class="layui-input-inline">
						<input type="text" name="address"  value="${detail.address}"
							autocomplete="off" class="layui-input">
					</div>
				</div>
			</div>
			<div class="layui-form-item">
				<div class="layui-input-block">
					<button class="layui-btn" lay-submit="" lay-filter="submit">修改</button>
				</div>
			</div>
		</div>
	</form>
</body>
</html>